﻿using System;
using System.Linq;
using System.Windows.Forms;

namespace EasyTagWinForm
{
  internal static class Program
  {
    /// <summary>
    /// 应用程序的主入口点。
    /// </summary>
    [STAThread]
    private static void Main(string[] args)
    {
      Application.EnableVisualStyles();
      Application.SetCompatibleTextRenderingDefault(false);
      string clickAction = args.LastOrDefault();
      if (args.Length == 0)
      {
        MessageBox.Show("No Args");
        Application.Run(new Form1());
      }
      else
      {
        MessageBox.Show($"action:{clickAction}");
        switch (clickAction)
        {
          case "setTag":
            Application.Run(new Form1(args));
            break;

          case "exportFolderTags":
            MessageBox.Show("exportFolderTags");
            break;

          default: /* 可选的 */
            MessageBox.Show("No Action");
            break;
        }
      }
    }
  }
}